﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using IPC.Communication.Framework.Language;

namespace IPC.Communication.Framework
{
    public static class StringResources
    {
        public static DefaultLanguage Language;

        static StringResources()
        {
            StringResources.Language = new DefaultLanguage();
            bool flag = CultureInfo.CurrentCulture.ToString().StartsWith("zh");
            if (flag)
            {
                StringResources.SetLanguageChinese();
            }
            else
            {
                StringResources.SeteLanguageEnglish();
            }
        }

        public static void SetLanguageChinese()
        {
            StringResources.Language = new DefaultLanguage();
        }

        public static void SeteLanguageEnglish()
        {
            StringResources.Language = new English();
        }
    }
}
